package com.quwan.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quwan.entity.TMemberCircle;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @author quan
 * @date 2022-03-20 18:29
 */


public interface TMemberCircleMapper extends BaseMapper<TMemberCircle> {
    @Insert("insert into t_member_circle(id,status,m_id,circle_name_id)" +
            "values (#{id},#{status},#{mId},#{circleId})" +
            "ON duplicate key update status =#{status} ")
    Integer followOrCancel(@Param("id") String id, @Param("mId") String mId, @Param("circleId") String circleId, @Param("status") Integer status);
}